package com.yssoft.entity.core;

import com.yssoft.entity.CommonEntity;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 管理制度表实体类
 * t_management_system
 * @author 
 */
@Table(name = "t_management_system")
public class TManagementSystem extends CommonEntity {
    @Id
    private Integer id;

    /**
     * 企业_主键
     */
    private Integer t_e_id;

    /**
     * 名称
     */
    private String name;

    /**
     * 附件url
     */
    private String url;
    
    /**
     * 文件名
     */
    private String fileName;
    
    /**
     * 文件大小
     */
    private String fileByte;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getT_e_id() {
        return t_e_id;
    }

    public void setT_e_id(Integer t_e_id) {
        this.t_e_id = t_e_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFileName() {
	
		return fileName;
	}

	public void setFileName(String fileName) {
	
		this.fileName = fileName;
	}

	public String getFileByte() {
	
		return fileByte;
	}

	public void setFileByte(String fileByte) {
	
		this.fileByte = fileByte;
	}

	@Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TManagementSystem other = (TManagementSystem) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getT_e_id() == null ? other.getT_e_id() == null : this.getT_e_id().equals(other.getT_e_id()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getT_e_id() == null) ? 0 : getT_e_id().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", t_e_id=").append(t_e_id);
        sb.append(", name=").append(name);
        sb.append(", url=").append(url);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}